# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=vvave
pkgver=1.1.1
pkgrel=0
pkgdesc="VVAVE Music Player"
# armhf blocked by qt5-qtdeclarative
# s390x, ppc64le, mips and mips64 blocked by qt5-qtwebview
arch="all !armhf !s390x !ppc64le !mips !mips64"
url="https://invent.kde.org/kde/vvave"
license="GPL-3.0-or-later"
depends="mauikit"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtwebsockets-dev qt5-qtquickcontrols2-dev qt5-qtmultimedia-dev qt5-qtsvg-dev qt5-qtwebview-dev mauikit-dev ki18n-dev knotifications-dev kconfig-dev kio-dev attica-dev syntax-highlighting-dev taglib-dev"
source="https://invent.kde.org/maui/vvave/-/archive/v$pkgver/vvave-v$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="4fd8ec64027a44aa4caafb7a9e388c7de4b01e92bfdd9bffca444854d3a710dc1459cf5c1fb6de188ee995a4e5bb817e7465df304bc5100f2de6b95198eb5dab  vvave-v1.1.1.tar.gz"
